﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

/// <summary>
/// Summary description for CategoryBus
/// </summary>
public class CategoryBus
{
    CategoryDAL categoryDal = new CategoryDAL();
	public CategoryBus()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    //display all Category
    public DataTable GetAllCategory()
    {
        return categoryDal.getAllCategory();
    }

    //search Category by Id
    public DataTable GetCategoryDetailById(string categoryid)
    {
        return categoryDal.GetCategoryById(categoryid);
    }

    public DataTable GetCategoryDetailByName(string categoryname)
    {
       
        return categoryDal.GetCategoryByName(categoryname);
    }
    
   
}